/* 
 * File:   base64.h
 * Author: Kevin Cheung
 *
 */

/**
 * @file base64.h
 * @brief base64 encoding schemes interface
 */

#ifndef BASE64_H
#define	BASE64_H

#ifdef	__cplusplus
extern "C" {
#endif

/* encode a string to a base64 string */
int base64_encode(unsigned char *source, size_t sourcelen, char *target, size_t targetlen);
/* decode a base64 string to string */
size_t base64_decode(char *source, unsigned char *target, size_t targetlen);

#ifdef	__cplusplus
}
#endif

#endif	/* BASE64_H */

